<%-- 
    Document   : index
    Created on : Jul 9, 2011, 10:23:26 AM
    Author     : kmq
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="ProjectMgtSystem.Entities.Engineer" %>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@taglib  uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Content-Style-Type" content="text/css" />
        <link href="css/style1.css" rel="stylesheet" type="text/css" />
        <link href="css/layout.css" rel="stylesheet" type="text/css" />
        <!--[if lt IE 7]>
	<link href="ie_style.css" rel="stylesheet" type="text/css" />
           <script type="text/javascript" src="js/ie_png.js"></script>
           <script type="text/javascript">
               ie_png.fix('.png');
           </script>
        <![endif]-->
    </head>

    <body id="page1">
        <!-- header -->
        <div class="inner_copy"></div> 
        <div id="header">
            <div class="container">
                <!-- .logo -->
                <div class="logo">
                    <a href="index.html"><img src="images/logo1.jpg" alt="" /></a>
                </div>
                <!-- /.logo -->
                <!-- .nav -->
                <ul class="nav">
                    <li><a href="index.jsp">HOME</a></li>
                    <li><a href="#" class="current">ENGINEER</a></li>
                    <li><a href="#">PROJECT</a></li>
                    <li><a href="#">TASK</a></li>
                    <li><a href="#">ASSIGNMENT</a></li>
                </ul>
                <!-- /.nav -->
                <form action="" id="search-form">
                    <fieldset>
                        <input type="text" class="text" value="Search:" onclick="this.value=''"/><input type="submit" value="" class="submit" />
                    </fieldset>
                </form>

            </div>
        </div>
        <!-- content -->
        <div id="content">
            <div class="container">
                <div class="inside">
                    <div class="wrapper">
                        <div class="aside">
                            <h2>Category</h2>
                            <ul class="list1">
                                <li><a href="#">Project</a></li>
                                <li><a href="#">Engineer</a></li>
                                <li><a href="#">Assignment</a></li>
                                <li><a href="#">Progress Management</a></li>
                            </ul>
                        </div>
                        <div class="mainContent">

                            <!-- Our main content begins here -->

                            <table id="mytable" cellspacing="0">
                                <tr>
                                    <th scope="col">ID</th>
                                    <th scope="col">First Name</th>
                                    <th scope="col">Last Name</th>
                                    <th scope="col">Major</th>
                                    <th scope="col">Status</th>
                                    <%
                                        java.util.ArrayList<Engineer> eList = (java.util.ArrayList<Engineer>) request.getAttribute("engineerList");
                                        for (Engineer en : eList) {
                                            out.print("<tr>");
                                            out.print("<td>" + en.getEngineerID() + "</td>");
                                            out.print("<td>" + en.getFirstName() + "</td>");
                                            out.print("<td>" + en.getLastName() + "</td>");
                                            out.print("<td>" + en.getMajor() + "</td>");
                                            if (en.getStatus() == 0) {
                                                out.print("<td>Free</td>");
                                            }
                                            out.print("</tr>");
                                        }
                                    %>
                                </tr>
                            </table>
                            <% /*<c:set var="enList" value="${}"></c:set>
                                <c:forEach var="en" items="${enList}">
                                <table>
                                <tr>
                                <td>
                                ${en.EngineerID}">
                                </td>
                                </tr>
                                </table>
                                </c:forEach> */%>
                            <!--End of main content-->




                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- footer -->
        <div id="footer">
            <div class="container">
                <div class="inside">
      	Copyright &copy; Team A POSCO-ICT
                </div>
            </div>
        </div>
    </body>
</html>
